package tech.aistar.service;

import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.model.dto.CompanySearchDTO;
import tech.aistar.model.entity.Company;

import java.util.List;


public interface ICompanyService {

   List<Company> findAllCompany();

   Company getById(Integer id);


   PageInfo<Company> findAllCompanyWithPage(Integer pageNum, Integer pageSize);
   /**
    * 根据城市查找
    * @param city
    * @return
    */
   PageInfo<Company> findCompanyPageByCity(Integer pageNum, Integer pageSize,String city);


   /**
    * 根据行业查找
    * @param kind
    * @return
    */
   List<Company> findCompanyByKind(String kind);


   /**
    * 根据融资阶段查找公司
    * @param
    * @return
    */
   List<Company> findCompanyByCollectMoneyState(Integer collectMoneyState);


   /**
    * 根据人数查找公司
    * @param peopleCountsState
    * @return
    */
   List<Company> findCompanyByPeopleCounts(Integer peopleCountsState);

   /**
    * 分页按钮
    * @param
    * @param
    * @param
    * @return
    */
   PageInfo<Company> findCompanyByCityCollectMPeopleC(Integer pageNum, CompanySearchDTO companySearchDTO);

}
